<?php 
namespace core\lib;
use core\lib\conf;
class log{
	static $_class;
	/**
	*1。确认日志储存方式
	*2，写日志
	*/
	public static function init(){
		//确认存储方式
		$log_type = conf::get('LOG_TYPE','log'); 
		$class = '\core\lib\driver\log\\'.strtolower($log_type);
		self::$_class = new $class();
	}

	public static function log($message){
		self::$_class->log($message);
	}
}